In a function How can I assign the value to a set